package com.yxw.yxnet_cd_center.customer_service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author liuxin
 * @date 2023.09.13
 */
@Data
@ApiModel(value="GroupAddDTO", description="工作组新增修改DTO")
public class GroupAddDTO implements Serializable {

    @NotBlank(message = "工作组名称不能为空")
    @ApiModelProperty(value = "工作组名称")
    private String groupName;

    @NotNull(message = "工作组负责人不能为空")
    @ApiModelProperty(value = "工作组负责人ID")
    private Long leaderId;

    @NotNull(message = "所属渠道不能为空")
    @ApiModelProperty(value = "渠道ID")
    private Long channelId;

    @Valid
    @NotEmpty(message = "工作组成员不能为空")
    @ApiModelProperty(value = "工作组成员")
    private List<Long> userIdList;

    @ApiModelProperty(value = "状态：0-启用 1-禁用")
    private Integer status;

    @ApiModelProperty(value = "组ID")
    private Long id;
}
